<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{=T.accepted_language or 'en'}}">
  <head>
    <title>{{=response.title or request.application}}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />     
    {{response.files.append(URL(request.application,'static','custom.css'))}}    
    {{include 'web2py_ajax.html'}}

</head>
<body>
    <!-- start body-box -->
    <div id="body-box">
    </div>
        <!-- start header-box -->
        <div id="header-box">
                <!-- start header-background -->
                <div id="header-background">
                    <!-- start header-foreground -->
                    <div id="header-foreground">
                        <!-- START company-text-box -->
                        <div id="company-text-box">
                            <!-- START company-slogan-01 -->
                            <div id="company-slogan-01">         <h3>{{=response.subtitle or ''}}</h3>
                            <!-- END company-slogan-01 -->
                            </div>
                            <!-- START company-slogan-02 -->
                            <div id="company-slogan-02">
                            <!-- END company-slogan-02 -->
                            </div>
                        <!-- END company-text-box -->
                        </div>
                        <!-- START logo -->
                        <div id="logo">
                        <!-- END logo -->
                        </div>
                    <!-- end header-foreground -->
                    </div>
                <!-- end header-background -->
                </div>
        <!-- end header-box -->
        </div>
        <!-- START statusbar-box -->
        <div id="statusbar-box">
            <!-- START statusbar-->
            <div id="statusbar">
                <!-- START menu-user -->
                <div id="menu-user">
 <!--           {{='/'.join(['',request.application,request.controller,request.function]+request.args)}}
        {{ if 'auth' in globals():}}
-->
        [ {{if not auth.user:}}
            <a href="{{=URL(r=request,c='default',f='user/login')}}">{{=T('login')}}</a> 
<!--            <a href="{{=URL(r=request,c='default',f='user/register')}}">{{=T('register')}}</a> |                     -->
<!--            <a href="{{=URL(r=request,c='default',f='user/request_reset_password')}}">{{=T('lost password')}}</a>    -->
            {{else:}}
            {{=auth.user.first_name}} |
            <a href="{{=URL(r=request,c='default',f='user/logout')}}">{{=T('logout')}}</a> |
            <a href="{{=URL(r=request,c='default',f='user/change_password')}}">{{=T('change password')}}</a> |
            <a href="{{=URL(r=request,c='default',f='user/profile')}}">{{=T('edit profile')}}</a>
            {{pass}} ]
            {{pass}}
                <!-- END menu-user -->
                </div>
                <!-- START menu-language-selection -->
                <div id="menu-language-selection">
                    <a href="?lang=fr">[ Français |</a>&nbsp;<a href="?lang=en">English ]</a></p>
                <!-- END menu-language-selection -->
                </div>
            <!-- END statusbar-->
            </div>
        <!-- END statusbar-box -->
        </div>
    <!-- START content-box -->
    <div id="content-box">
        <!-- START content -->
        <div id="content">
            <!-- START column-01-box -->
            <div id="column-01">
                <!-- start menu-site-box -->
                <div id="menu-site-box">
            {{if response.menu:}}
            {{=MENU(response.menu)}}
            {{pass}}
                <!-- close menu-site-box -->
                </div>
            <!-- END column-01-box -->
            </div>
            <!-- START column-02-box -->
            <div id="column-02">
                {{include}}
                {{if request.controller == 'videos':}}
                {{include 'videos/youtube.html'}}
                {{pass}}
            <!-- END column-02-box -->
            </div>
            <!-- END content -->
            </div>
    <!-- END content-box -->
    </div>
        <!-- START footer -->
        <div id="footer">
            <!-- START optional-footer -->
            <!-- START left-footer -->
            <div id="left-footer">
            {{=T('Copyright')}} &copy; 2010 - Multi-Paysages Inc.
            <!-- END left-footer -->
            </div>
            <!-- START right-footer -->
            <div id="right-footer">
            {{=T('Powered by')}} <a href="http://voiceofaccess.com">Agile</a>
            <!-- END right-footer -->
            </div>
        <!-- END Footer -->
        </div>
    <!-- END body-box -->
    </div>
<!-- END body-box -->
</body>
